import request from '@/utils/request'

// 查询货位列表
export function listWhLocation(query) {
  return request({
    url: '/base/whLocation/list',
    method: 'get',
    params: query
  })
}

// 查询货位详细
export function getWhLocation(id) {
  return request({
    url: '/base/whLocation/' + id,
    method: 'get'
  })
}

// 新增货位
export function addWhLocation(data) {
  return request({
    url: '/base/whLocation',
    method: 'post',
    data: data
  })
}

// 修改货位
export function updateWhLocation(data) {
  return request({
    url: '/base/whLocation',
    method: 'put',
    data: data
  })
}

// 删除货位
export function delWhLocation(id) {
  return request({
    url: '/base/whLocation/' + id,
    method: 'delete'
  })
}
